class Answer():
  def __init__(self, text, correct=False):
    self.text = text
    self.correct = correct


  def isCorrect(self):
    return self.correct



class Question():
  def __init__(self, text):
    self.text = text
    self.answers = []


  def getNumberOfAnswers(self):
    return len(self.answers)


  def getAnswer(self, index):
    if index >= self.getNumberOfAnswers() or index < 0:
      return None

    return self.answers[index]


  def addAnswer(self, answer):
    self.answers.append(answer)